"""
一个回合制游戏，每个角色都有hp 和power，hp代表血量，power代表攻击力，
hp的初始值为1000，power的初始值为200。
定义一个fight方法：
my_final_hp = my_hp - enemy_power
enemy_final_hp = enemy_hp - my_power
两个hp进行对比，血量剩余多的人获胜
"""
def play_round_more(my_hp, my_power, enemy_hp, enemy_power):

    while True:
        my_hp = my_hp - enemy_power
        enemy_hp = enemy_hp - my_power

        # print(my_hp)
        # print("----------------")
        # print(enemy_hp)
        # print("\n")

        if my_hp < 0:
            print("我赢了")
            break

        elif enemy_hp < 0:
            print("我输了")
            break


play_round_more(1000, 200, 990, 290)
